package com.gxa.community.core.pojo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 *
 * @author juran
 * @since 2022-07-19
 */
@Data
@AllArgsConstructor
@Accessors(chain = true)
@TableName("ad")
@ApiModel(value = "Ad对象", description = "广告信息")
public class Ad implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("广告名称")
    private String name;

    @ApiModelProperty("广告位置 1首页轮播 2首页推荐位置")
    private Integer position;

    @ApiModelProperty("排序序号")
    private Integer sort;

    @ApiModelProperty("广告图片")
    private String pic;

    @ApiModelProperty("跳转链接")
    private String url;

    @ApiModelProperty("开始时间")
    private Long startTime;

    @ApiModelProperty("结束时间")
    private Long endTime;

    @ApiModelProperty("点击次数")
    private Integer hitCount;

    @ApiModelProperty("跳转类型 1站内 2外链")
    private Integer type;

    @ApiModelProperty("状态 1上线 0下线")
    private Integer status;
}
